function checkField(){
	var numField = document.getElementById('updateform_num').value;
	if ( numField == null || numField == "" ){
		var msg = "Please enter the number you've selected";
		alert(msg);		
		document.getElementById('updateform_num').focus();	
		return false;
	}
}

function regRequired() {
	var nic = document.getElementById('nic').value;
	var passport = document.getElementById('passport').value;
	var cdc = document.getElementById('cdc').value;
	
	if ( nic || passport || cdc ){
		return true;
	}
	else {
		var msg = "Please Enter one of NIC number , Passport number or CDC number";
		alert(msg);		
		document.getElementById('reg_form').focus(); 	
		return false;
	}
}